#coding=utf-8
import sys, os
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_PATH)# 项目目录
from utils import log
import pandas as pd


class CF(object):
    def __init__(self,
                 path = "../dataset/ml-1m/",
                 file_path = "ratings.csv"):
        self.parent_path = path
        self.file_path = file_path
    def _init_frame(self):
        self.dataframe = pd.read_csv(self.file_path)